<html>
<body>
Reports methods and fields in the <code>Serializable</code> and <code>Externalizable</code>
classes that are suitable to be annotated with the <code>java.io.Serial</code> annotation. The quick-fix adds the annotation.
<p><b>Example:</b></p>
<pre><code>
class Main implements Serializable {
  private static final long serialVersionUID = 7874493593505141603L;

  private void writeObject(ObjectOutputStream out) throws IOException {
  }
}
</code></pre>
<p>After the quick-fix is applied:</p>
<pre><code>
  class Main implements Serializable {
    @Serial
    private static final long serialVersionUID = 7874493593505141603L;

    @Serial
    private void writeObject(ObjectOutputStream out) throws IOException {
    }
}
</code></pre>
<p><b>Example:</b></p>
<pre><code>
  class Main implements Externalizable {
    protected Object readResolve() throws ObjectStreamException {
      return "SomeObject";
    }
  }
</code></pre>
<p>After the quick-fix is applied:</p>
<pre><code>
  class Main implements Externalizable {
    @Serial
    protected Object readResolve() throws ObjectStreamException {
        return "SomeObject";
    }
  }
</code></pre>
<p>For more information about all possible cases, refer to the Javadoc of the <code>java.io.Serial</code> class.</p>
<!-- tooltip end -->
<p><small>New in 2020.3</small></p>
</body>
</html>